Skip to main content

All Questions

0votes
1answer
662views

Angular directive to adjust your component Height as per window height Dynamically

Angular directive to adjust the height of your div/components(Elements) Dynamically as per screen
Sourav Raj's user avatar
1vote
1answer
84views

angularjs Uncaught Error: [$rootScope:infdig] directive

I am trying to create some events in a dynamic input This is the HTML code <input id="{{inputField.id}}" placeholder="{{inputField.placeHolder}}" ng-readonly="(!identificationProperty....
Danielle Rodrigues's user avatar
0votes
1answer
167views

Nesting (first) custom directive another (second) directive moves (first) custom directive to childscope instead of scope

The following is a template that works to the point that webix-ui directive points to childscope because it is inside of an ng-if... I need ng-if to wait for the $scope.init() to finish getting data ...
Vahe's user avatar
  • 1,841
1vote
0answers
58views

How do I disable a button with an ng-disabled directive without adding an extra parameter to the ng-disabled directive?

** SHORT VERSION ** I'm currently working on an ASP.NET MVC Web project, using AngularJS. I currently have a button with a ng-disabled directive that we want to disable in the typescript controller ...
Junius01's user avatar
0votes
1answer
52views

Angularjs directive not work to added by javascript

I want to normally work my directive When I add this element by click event. I checked that the originally declared code works as expected. This html element is added by javascript function when be ...
임종식's user avatar
0votes
1answer
2kviews

AngularJS pass variable to directive

I have to make some directive in an AngularJS app and I need to pass variables from my controller to the directives. The problem is that I have to use a directive syntax who is not common for me, and ...
Spialdor's user avatar
1vote
2answers
295views

AngularJS - Directive won't load

I have a little directive and I have troubles to make it working. here is my directive : angular .module('thermofluor') .directive('myCustomer', function() { return { restrict: 'E', ...
Spialdor's user avatar
2votes
1answer
603views

Why ng-model in directive template not updating when value is changed from the controller

I'm Using a directive and from two way binding i'm changing a date object variable that is passed to the directive initially. But when I do some changes to the date variable like $scope.valueee = 1;...
RoHaN's user avatar
  • 1,355
1vote
0answers
474views

AngularJS broadcast event fires $on in own scope?

I am implementing event reflector directive. Its sole purpose is to listen to an event and broadcast it down to children scopes. Reason is: I have couple of components that need to communicate with ...
Andrei V's user avatar
0votes
0answers
65views

Directive with multiple ngmodel

I have a custom directive that requires an ngModel such as: return { restrict: 'EA', scope: { counter: '@', modelResult: '=ngModel' }, require: 'ngModel', ...
Luis Chaparro's user avatar
0votes
2answers
66views

Angular Directive - NgModelCtrl Parser Issue

I have a directive to show a symbol depending on the value of a field. This is attached to a field as follows: <input type="text" placeholder="" class="text-input" ng-class="example_class" ng-...
peanut's user avatar
0votes
1answer
34views

Reinitialise directive on change of attribute

I have two directives, calling 2nd directive from 1st directive. This is my 1st directive var initializeWidget = function ($compile, $timeout, $rootScope) { return { restrict: 'EA',...
Varun Sukheja's user avatar
0votes
1answer
1kviews

Different between template and templateUrl in a directive

When I was coding with angular 1.5.3. This is the code: app.js var testApp = angular.module('test-app', ['plugin.template']); testApp.run(function ($rootScope) { }); createDirective('...
timShadow's user avatar
0votes
1answer
45views

How to trigger an directive after a module out of my main module in angularjs

I'm new in AngularJS and a little confused with directive things. In the code below I need to make an input field with a directive which is in an outsource module and focus on it with my custom ...
Roohollah Khodabakhshi's user avatar
0votes
0answers
68views

sharing data between the directives angularjs

I have a page with 2 directives. one directive(Directive-1) is responsible for loading data grid(using KENDO-GRID) and another directive has buttons to print, export as Excel, PDF files etc. From ...
UIDev's user avatar

153050per page
close